package com.mpyy.service.systemSetting;

import com.mpyy.dao.systemSetting.DepotInfoMapper;
import com.mpyy.pojo.DepotInfo;
import com.mpyy.pojo.EmployeeInfo;
import com.mpyy.service.systemSetting.DepotInfoInter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Description
 * @Author zhangkaibo
 * @Date 2022-03-22 14:08
 */
@Service("depotInfolmpl")
public class DepotInfolmpl implements DepotInfoInter {
    @Autowired
    @Qualifier("depotInfoMapper")
    private DepotInfoMapper depotInfoMapper;
    //查询仓库信息
    @Override
    public List<DepotInfo> searchDepotInfo() {
        List<DepotInfo> searchDepotInfo = depotInfoMapper.searchDepotInfo();
        return searchDepotInfo;
    }

    @Override
    public List<EmployeeInfo> searchEmpName() {
        List<EmployeeInfo> searchEmpName = depotInfoMapper.searchEmpName();
        return searchEmpName;
    }

    //新增仓库信息
    @Override
    public int insertDepotInfo(DepotInfo depotInfo) {
        int i = depotInfoMapper.insertDepotInfo(depotInfo);
        return i;
    }
    //修改仓库信息
    @Override
    public int updateDepotInfo(DepotInfo depotInfo) {
        int i = depotInfoMapper.updateDepotInfo(depotInfo);
        return i;
    }
    //删除仓库信息
    @Override
    public int deleteDepotInfo(DepotInfo depotInfo) {
        int i = depotInfoMapper.deleteDepotInfo(depotInfo);
        return i;
    }
}
